colorbutton: Remove unneeded snapshot implementation
authorTimm Bäder <mail@baedert.org>
Sun, 28 Apr 2019 08:55:10 +0000 (10:55 +0200)
committerTimm Bäder <mail@baedert.org>
Sun, 28 Apr 2019 08:55:10 +0000 (10:55 +0200)
gtk/gtkcolorbutton.c

index 7e10a78abc1fa9d6ed1fe1c42b25e36da3f6818c..54ca14c5ba2c4dd5190694561422cf8b6ad106a1 100644 (file)
@@ -153,16 +153,6 @@ gtk_color_button_measure (GtkWidget       *widget,
                       minimum_baseline, natural_baseline);
 }
 
-static void
-gtk_color_button_snapshot (GtkWidget   *widget,
-                           GtkSnapshot *snapshot)
-{
-  GtkColorButton *button = GTK_COLOR_BUTTON (widget);
-  GtkColorButtonPrivate *priv = gtk_color_button_get_instance_private (button);
-
-  gtk_widget_snapshot_child (widget, priv->button, snapshot);
-}
-
 static void
 gtk_color_button_size_allocate (GtkWidget *widget,
                                 int        width,
@@ -193,7 +183,6 @@ gtk_color_button_class_init (GtkColorButtonClass *klass)
   gobject_class->set_property = gtk_color_button_set_property;
   gobject_class->finalize = gtk_color_button_finalize;
 
-  widget_class->snapshot = gtk_color_button_snapshot;
   widget_class->measure = gtk_color_button_measure;
   widget_class->size_allocate = gtk_color_button_size_allocate;
   klass->color_set = NULL;